package com.ruoyi.project.business.schedulerule.mapper;

import java.util.Date;
import java.util.List;
import com.ruoyi.project.business.schedulerule.entity.MonthScheduleRule;
import org.apache.ibatis.annotations.Param;

/**
 * 排班规则Mapper接口
 * 
 * @author ${author}
 * @date 2024-03-06
 */
public interface MonthScheduleRuleMapper {
    /**
     * 查询排班规则
     * 
     * @return 排班规则
     */
    public MonthScheduleRule selectMonthScheduleRuleById(Long id);

    /**
     * 查询排班规则列表
     * 
     * @return 排班规则集合
     */
    public List<MonthScheduleRule> selectMonthScheduleRuleList(MonthScheduleRule monthScheduleRule);

    /**
     * 新增排班规则
     * 
     * @return 结果
     */
    public int insertMonthScheduleRule(MonthScheduleRule monthScheduleRule);

    /**
     * 修改排班规则
     * 
     * @return 结果
     */
    public int updateMonthScheduleRule(MonthScheduleRule monthScheduleRule);

    /**
     * 删除排班规则
     * 
     * @return 结果
     */
    public int deleteMonthScheduleRuleById(Long id);

    /**
     * 批量删除排班规则
     * 
     * @return 结果
     */
    public int deleteMonthScheduleRuleByIds(Long[] ids);

    List<MonthScheduleRule> selectRulesByUserIds(@Param("userIds") List<Long> userIds,
                                                 @Param("year") int year,
                                                 @Param("month") int month,
                                                 @Param("tenantId") Long tenantId);
}
